import dayjs from 'dayjs'

export function formatDateTime(date: number | string | Date, format = 'YYYY-MM-DD HH:mm:ss') {
  return dayjs(date).format(format)
}
